Fix average font width calculation on NS.
authorChong Yidong <cyd@gnu.org>
Thu, 16 Aug 2012 06:40:57 +0000 (14:40 +0800)
committerChong Yidong <cyd@gnu.org>
Thu, 16 Aug 2012 06:40:57 +0000 (14:40 +0800)
commitb377ac371587e39f38d837ef991f75db1bb104ed
tree7a029de634c7d216b08221dc7e1c830683796f22
parentb5a871f2c3dce01f8fac955b9bdd8992731a694e
Fix average font width calculation on NS.

* src/nsfont.m (nsfont_open): Similar to the Xft backend, set
min_width to space_width and average_width to the average over
printable ASCII characters.
(ns_char_width): Code cleanup.
(ns_ascii_average_width): New utility function.
src/nsfont.m
src/nsterm.h